<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>自定义简单动画</title>
    <style type="text/css">
        *
        {  margin:0;padding:0;
        }
        body
        { padding:60px;}
        #panel
        {
            position:relative;
            width:100px;
            height:100px;
            border:1px solid blue;
            background-color:green;
            cursor:pointer;

        }
    </style>
    <script type="text/javascript" src="jquery-1.8.0.js"></script>
    <script type="text/javascript"language="JavaScript">
$(function(){
    $("#panel").css("opacity","0.5");
    $("#panel").click(function(){
        $(this).animate({left:"500px",height:"200px",opacity:"1"},3000).animate({top:"200px",width:"200px"},3000,function(){
            $(this).css("border","5px solid red")
        })
    })
})


    </script>
</head>
<body>
<div id="panel"></div>
</body>
</html>